package com.arthur.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;

public class MySelfRule {
    @Bean
    public IRule myRule(){
        //轮询策略，默认策略
        //return new RoundRobinRule();
        //自定义策略
        return new MyRuleImpl();
    }
}
